package com.woniuxy.caradmin.service;

import com.woniuxy.caradmin.entity.pojo.Oilrecord;
import com.woniuxy.caradmin.entity.vo.OilRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
public interface OilrecordService  {
    //查询全部的加油记录
    public List<Oilrecord> selectAllOilRecords(OilRecordVo oilRecordVo);

    //1 分页查询
    public List<Oilrecord> selectAllBy(OilRecordVo OilRecordVo);

    //根据车牌号模糊查询
    public List<Oilrecord> selectAllOilRecordsByVid(String vehiclenum);

    //2 增加加油记录
    public int addOilRecord(Oilrecord oilrecord);

    //5 修改加油记录
    public int updateOilRecord(Oilrecord oilrecord);

    //3 删除加油记录
    public boolean deleteOilRecord(Integer[] ids);

    //4 根据id查询--为了修改使用
    public Oilrecord oilRecordById(Integer id);
}
